package cn.leaves.wb.viewer;

import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import cn.leaves.wb.db.bean.Notice;

@Controller
public class NoticeViewer {
	@RequestMapping("/js/notice/new")
	public String postNotice(
			@RequestParam("notice") String notice,
			@RequestParam("lat") Double lat,
			@RequestParam("lng") Double lng,
			ModelMap model) {
		model.put("notice", new Notice());
		return "notice";
	}
}
